source_data->timeout_id = g_timeout_add_seconds (2, backend_restart,
source_data);
+ g_source_set_name_by_id (source_data->timeout_id, "[gnome-shell] backend_restart");
}
static void
app->changed_timeout_id = g_timeout_add (2000,
on_app_schedule_changed_cb,
app);
+ g_source_set_name_by_id (app->changed_timeout_id, "[gnome-shell] on_app_schedule_changed_cb");
}
}
autoquit_id =
g_timeout_add_seconds (AUTOQUIT_TIMEOUT,
autoquit_timeout_cb, NULL);
+ g_source_set_name_by_id (autoquit_id, "[gnome-shell] autoquit_timeout_cb");
}
typedef struct {
self->priv->watchdog_id =
g_timeout_add (WATCHDOG_TIMEOUT,
watchdog_timeout_reached_cb, self);
+ g_source_set_name_by_id (self->priv->watchdog_id, "[gnome-shell] watchdog_timeout_reached_cb");
start_loading_file (self);
}
if (self->save_id != 0)
return;
self->save_id = g_timeout_add_seconds (SAVE_APPS_TIMEOUT_SECONDS, idle_save_application_usage, self);
+ g_source_set_name_by_id (self->save_id, "[gnome-shell] idle_save_application_usage");
}
/* Clean up apps we see rarely.
* in another thread.
*/
if (!global->leisure_function_id)
- global->leisure_function_id = g_idle_add_full (G_PRIORITY_LOW,
- run_leisure_functions,
- global, NULL);
+ {
+ global->leisure_function_id = g_idle_add_full (G_PRIORITY_LOW,
+ run_leisure_functions,
+ global, NULL);
+ g_source_set_name_by_id (global->leisure_function_id, "[gnome-shell] run_leisure_functions");
+ }
}
/**
g_source_remove (timeout_id);
timeout_id = g_timeout_add (opt_idle_timeout * 1000, on_timeout, NULL);
+ g_source_set_name_by_id (timeout_id, "[gnome-shell] on_timeout");
}
static void
perf_log->statistics_timeout_id = g_timeout_add (STATISTIC_COLLECTION_INTERVAL_MS,
statistics_timeout,
perf_log);
+ g_source_set_name_by_id (perf_log->statistics_timeout_id, "[gnome-shell] statistics_timeout");
}
else
{
gpointer user_data)
{
AuthRequest *request = user_data;
+ guint id;
+
/* post-pone to idle to handle GCancellable deadlock in
*
* https://bugzilla.gnome.org/show_bug.cgi?id=642968
*/
- g_idle_add (handle_cancelled_in_idle, request);
+ id = g_idle_add (handle_cancelled_in_idle, request);
+ g_source_set_name_by_id (id, "[gnome-shell] handle_cancelled_in_idle");
}
static void
g_mutex_lock (src->mutex);
src->memory_used += delta;
if (src->memory_used_update_idle == 0)
- src->memory_used_update_idle = g_idle_add (shell_recorder_src_memory_used_update_idle, src);
+ {
+ src->memory_used_update_idle = g_idle_add (shell_recorder_src_memory_used_update_idle, src);
+ g_source_set_name_by_id (src->memory_used_update_idle, "[gnome-shell] shell_recorder_src_memory_used_update_idle");
+ }
g_mutex_unlock (src->mutex);
}
recorder->redraw_timeout = g_timeout_add (MAXIMUM_PAUSE_TIME,
recorder_redraw_timeout,
recorder);
+ g_source_set_name_by_id (recorder->redraw_timeout, "[gnome-shell] recorder_redraw_timeout");
}
}
* we need to queue a "low priority redraw" after timeline updates
*/
if (recorder->state == RECORDER_STATE_RECORDING && recorder->redraw_idle == 0)
- recorder->redraw_idle = g_idle_add_full (CLUTTER_PRIORITY_REDRAW + 1,
- recorder_idle_redraw, recorder, NULL);
+ {
+ recorder->redraw_idle = g_idle_add_full (CLUTTER_PRIORITY_REDRAW + 1,
+ recorder_idle_redraw, recorder, NULL);
+ g_source_set_name_by_id (recorder->redraw_idle, "[gnome-shell] recorder_idle_redraw");
+ }
}
static void
recorder_add_update_pointer_timeout (ShellRecorder *recorder)
{
if (!recorder->update_pointer_timeout)
- recorder->update_pointer_timeout = g_timeout_add (UPDATE_POINTER_TIME,
- recorder_update_pointer_timeout,
- recorder);
+ {
+ recorder->update_pointer_timeout = g_timeout_add (UPDATE_POINTER_TIME,
+ recorder_update_pointer_timeout,
+ recorder);
+ g_source_set_name_by_id (recorder->update_pointer_timeout, "[gnome-shell] recorder_update_pointer_timeout");
+ }
}
static void
return;
if (recorder->update_memory_used_timeout == 0)
- recorder->update_memory_used_timeout = g_timeout_add (UPDATE_MEMORY_USED_DELAY,
- recorder_update_memory_used_timeout,
- recorder);
+ {
+ recorder->update_memory_used_timeout = g_timeout_add (UPDATE_MEMORY_USED_DELAY,
+ recorder_update_memory_used_timeout,
+ recorder);
+ g_source_set_name_by_id (recorder->update_memory_used_timeout, "[gnome-shell] recorder_update_memory_used_timeout");
+ }
}
static void
PAGING_INITIAL_REPEAT_TIMEOUT,
(GSourceFunc) trough_paging_cb,
self);
+ g_source_set_name_by_id (self->priv->paging_source_id, "[gnome-shell] trough_paging_cb");
}
else if (self->priv->paging_event_no == 1)
{
PAGING_SUBSEQUENT_REPEAT_TIMEOUT,
(GSourceFunc) trough_paging_cb,
self);
+ g_source_set_name_by_id (self->priv->paging_source_id, "[gnome-shell] trough_paging_cb");
}
else
{
on_icon_theme_changed (StTextureCache *cache,
StThemeContext *context)
{
+ guint id;
+
/* Note that an icon theme change isn't really a change of the StThemeContext;
* the style information has changed. But since the style factors into the
* icon_name => icon lookup, faking a theme context change is a good way
* to force users such as StIcon to look up icons again.
*/
- g_idle_add ((GSourceFunc) changed_idle, context);
+ id = g_idle_add ((GSourceFunc) changed_idle, context);
+ g_source_set_name_by_id (id, "[gnome-shell] changed_idle");
}
/**